<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkGrid</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="LayoutContainers.html" title="布局容器">
<link rel="prev" href="LayoutContainers.html" title="布局容器">
<link rel="next" href="gtk3-GtkAlignment.html" title="GtkAlignment">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="LayoutContainers.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="LayoutContainers.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkAlignment.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkGrid.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkGrid.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkGrid"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkGrid.top_of_page"></a>GtkGrid</span></h2>
<p>GtkGrid — Pack widgets in a rows and columns</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkGrid.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid">GtkGrid</a>;
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkGrid.html#gtk-grid-new" title="gtk_grid_new ()">gtk_grid_new</a>                        (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkGrid.html#gtk-grid-attach" title="gtk_grid_attach ()">gtk_grid_attach</a>                     (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> top</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkGrid.html#gtk-grid-attach-next-to" title="gtk_grid_attach_next_to ()">gtk_grid_attach_next_to</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a> *sibling</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> side</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkGrid.html#gtk-grid-set-row-homogeneous" title="gtk_grid_set_row_homogeneous ()">gtk_grid_set_row_homogeneous</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> homogeneous</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkGrid.html#gtk-grid-get-row-homogeneous" title="gtk_grid_get_row_homogeneous ()">gtk_grid_get_row_homogeneous</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkGrid.html#gtk-grid-set-row-spacing" title="gtk_grid_set_row_spacing ()">gtk_grid_set_row_spacing</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> spacing</code></em>);
<a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               <a class="link" href="gtk3-GtkGrid.html#gtk-grid-get-row-spacing" title="gtk_grid_get_row_spacing ()">gtk_grid_get_row_spacing</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkGrid.html#gtk-grid-set-column-homogeneous" title="gtk_grid_set_column_homogeneous ()">gtk_grid_set_column_homogeneous</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> homogeneous</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkGrid.html#gtk-grid-get-column-homogeneous" title="gtk_grid_get_column_homogeneous ()">gtk_grid_get_column_homogeneous</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkGrid.html#gtk-grid-set-column-spacing" title="gtk_grid_set_column_spacing ()">gtk_grid_set_column_spacing</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> spacing</code></em>);
<a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               <a class="link" href="gtk3-GtkGrid.html#gtk-grid-get-column-spacing" title="gtk_grid_get_column_spacing ()">gtk_grid_get_column_spacing</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkGrid.description"></a><h2>Description</h2>
<p>
GtkGrid is a container which arranges its child widgets in
rows and columns. It is a very similar to <a class="link" href="gtk3-GtkTable.html#GtkTable" title="struct GtkTable"><span class="type">GtkTable</span></a> and <a class="link" href="gtk3-GtkBox.html#GtkBox" title="struct GtkBox"><span class="type">GtkBox</span></a>,
but it consistently uses <a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a>'s <span class="type">"margin"</span> and <span class="type">"expand"</span>
properties instead of custom child properties, and it fully supports
<a class="link" href="gtk3-GtkWidget.html#geometry-management" title="Height-for-width Geometry Management">height-for-width geometry management</a>.
</p>
<p>
Children are added using <a class="link" href="gtk3-GtkGrid.html#gtk-grid-attach" title="gtk_grid_attach ()"><code class="function">gtk_grid_attach()</code></a>. They can span multiple
rows or columns. It is also possible to add a child next to an
existing child, using <a class="link" href="gtk3-GtkGrid.html#gtk-grid-attach-next-to" title="gtk_grid_attach_next_to ()"><code class="function">gtk_grid_attach_next_to()</code></a>.
</p>
<p>
GtkGrid can be used like a <a class="link" href="gtk3-GtkBox.html#GtkBox" title="struct GtkBox"><span class="type">GtkBox</span></a> by just using <a class="link" href="gtk3-GtkContainer.html#gtk-container-add" title="gtk_container_add ()"><code class="function">gtk_container_add()</code></a>,
which will place children next to each other in the direction determined
by the <span class="type">"orientation"</span> property.
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkGrid.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkGrid"></a><h3>struct GtkGrid</h3>
<pre class="programlisting">struct GtkGrid {
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-new"></a><h3>gtk_grid_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_grid_new                        (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new grid widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the new <a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-attach"></a><h3>gtk_grid_attach ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_attach                     (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> top</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
<p>
Adds a widget to the grid.
</p>
<p>
The position of <em class="parameter"><code>child</code></em> is determined by <em class="parameter"><code>left</code></em> and <em class="parameter"><code>top</code></em>. The
number of 'cells' that <em class="parameter"><code>child</code></em> will occupy is determined by
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>the widget to add</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>left</code></em> :</span></p></td>
<td>the column number to attach the left side of <em class="parameter"><code>child</code></em> to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>top</code></em> :</span></p></td>
<td>the row number to attach the top side of <em class="parameter"><code>child</code></em> to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>the number of columns that <em class="parameter"><code>child</code></em> will span</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>the number of rows that <em class="parameter"><code>child</code></em> will span</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-attach-next-to"></a><h3>gtk_grid_attach_next_to ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_attach_next_to             (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a> *sibling</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> side</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>);</pre>
<p>
Adds a widget to the grid.
</p>
<p>
The widget is placed next to <em class="parameter"><code>sibling</code></em>, on the side determined by
<em class="parameter"><code>side</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>the widget to add</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sibling</code></em> :</span></p></td>
<td>the child of <em class="parameter"><code>grid</code></em> that <em class="parameter"><code>child</code></em> will be placed next to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>side</code></em> :</span></p></td>
<td>the side of <em class="parameter"><code>sibling</code></em> that <em class="parameter"><code>child</code></em> is positioned next to</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>the number of columns that <em class="parameter"><code>child</code></em> will span</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>the number of rows that <em class="parameter"><code>child</code></em> will span</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-set-row-homogeneous"></a><h3>gtk_grid_set_row_homogeneous ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_set_row_homogeneous        (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> homogeneous</code></em>);</pre>
<p>
Sets whether all rows of <em class="parameter"><code>grid</code></em> will have the same height.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>homogeneous</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to make rows homogeneous</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-get-row-homogeneous"></a><h3>gtk_grid_get_row_homogeneous ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_grid_get_row_homogeneous        (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
<p>
Returns whether all rows of <em class="parameter"><code>grid</code></em> have the same height.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether all rows of <em class="parameter"><code>grid</code></em> have the same height.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-set-row-spacing"></a><h3>gtk_grid_set_row_spacing ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_set_row_spacing            (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> spacing</code></em>);</pre>
<p>
Sets the amount of space between rows of <em class="parameter"><code>grid</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>spacing</code></em> :</span></p></td>
<td>the amount of space to insert between rows</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-get-row-spacing"></a><h3>gtk_grid_get_row_spacing ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               gtk_grid_get_row_spacing            (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
<p>
Returns the amount of space between the rows of <em class="parameter"><code>grid</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the row spacing of <em class="parameter"><code>grid</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-set-column-homogeneous"></a><h3>gtk_grid_set_column_homogeneous ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_set_column_homogeneous     (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> homogeneous</code></em>);</pre>
<p>
Sets whether all columns of <em class="parameter"><code>grid</code></em> will have the same width.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>homogeneous</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to make columns homogeneous</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-get-column-homogeneous"></a><h3>gtk_grid_get_column_homogeneous ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_grid_get_column_homogeneous     (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
<p>
Returns whether all columns of <em class="parameter"><code>grid</code></em> have the same width.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether all columns of <em class="parameter"><code>grid</code></em> have the same width.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-set-column-spacing"></a><h3>gtk_grid_set_column_spacing ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_grid_set_column_spacing         (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> spacing</code></em>);</pre>
<p>
Sets the amount of space between columns of <em class="parameter"><code>grid</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>spacing</code></em> :</span></p></td>
<td>the amount of space to insert between columns</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-grid-get-column-spacing"></a><h3>gtk_grid_get_column_spacing ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>               gtk_grid_get_column_spacing         (<em class="parameter"><code><a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a> *grid</code></em>);</pre>
<p>
Returns the amount of space between the columns of <em class="parameter"><code>grid</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>grid</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkGrid.html#GtkGrid" title="struct GtkGrid"><span class="type">GtkGrid</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the column spacing of <em class="parameter"><code>grid</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="gtk3-GtkGrid.see-also"></a><h2>See Also</h2>
<a class="link" href="gtk3-GtkTable.html#GtkTable" title="struct GtkTable"><span class="type">GtkTable</span></a>, <a class="link" href="gtk3-GtkHBox.html#GtkHBox" title="struct GtkHBox"><span class="type">GtkHBox</span></a>, <a class="link" href="gtk3-GtkVBox.html#GtkVBox" title="struct GtkVBox"><span class="type">GtkVBox</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>